function Vue(obj) {
    // console.log(obj);
    this.$el = document.querySelector(obj.el);
    for (const key in obj.data) {
        this[key] = obj.data[key]
    }
    // console.log(obj.data);
    // this.num = 10
    for (const key in obj.methods) {
        this[key] = obj.methods[key]
    }
    for (let i = 0; i < this.$el.children.length; i++) {
        let dom = this.$el.children[i];
        let txt = dom.innerText;
        let attr = dom.getAttribute("@click");
        if (txt.includes("{{")) {
            let key = txt.split("{{")[1].split("}}")[0];
            dom.innerText = this[key];
        }
        if (attr) {
            dom.onclick = this[attr].bind(this);
        }

    }
}